<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>知识库管理 - 消防大模型应用平台</title>
    <!-- Tailwind CSS -->
    <script src="https://cdn.tailwindcss.com"></script>
    <!-- Element Plus -->
    <link rel="stylesheet" href="https://unpkg.com/element-plus/dist/index.css">
    <script src="https://unpkg.com/element-plus"></script>
    <!-- Font Awesome -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
    <style>
        .sidebar {
            height: 100vh;
            position: fixed;
            left: 0;
            top: 0;
            width: 250px;
            background: #1a237e;
            color: white;
            padding: 20px;
        }
        .main-content {
            margin-left: 250px;
            padding: 20px;
        }
    </style>
</head>
<body class="bg-gray-100">
    <!-- 侧边栏 -->
    <div class="sidebar">
        <div class="text-2xl font-bold mb-8">
            <i class="fas fa-fire-extinguisher mr-2"></i>
            消防大模型平台
        </div>
        <nav>
            <ul class="space-y-4">
                <li>
                    <a href="dashboard.html" class="flex items-center text-white hover:text-blue-300">
                        <i class="fas fa-home w-6"></i>
                        <span>控制台</span>
                    </a>
                </li>
                <li>
                    <a href="knowledge.html" class="flex items-center text-white bg-blue-800 rounded-lg">
                        <i class="fas fa-book w-6"></i>
                        <span>知识库</span>
                    </a>
                </li>
                <li>
                    <a href="report.html" class="flex items-center text-white hover:text-blue-300">
                        <i class="fas fa-file-alt w-6"></i>
                        <span>报告生成</span>
                    </a>
                </li>
                <li>
                    <a href="analysis.html" class="flex items-center text-white hover:text-blue-300">
                        <i class="fas fa-chart-line w-6"></i>
                        <span>分析工具</span>
                    </a>
                </li>
                <li>
                    <a href="settings.html" class="flex items-center text-white hover:text-blue-300">
                        <i class="fas fa-cog w-6"></i>
                        <span>系统设置</span>
                    </a>
                </li>
            </ul>
        </nav>
    </div>

    <!-- 主要内容区 -->
    <div class="main-content">
        <div class="bg-white rounded-lg shadow-lg p-6">
            <div class="flex justify-between items-center mb-6">
                <h1 class="text-2xl font-bold">知识库管理</h1>
                <button class="bg-blue-500 text-white px-4 py-2 rounded-lg hover:bg-blue-600">
                    <i class="fas fa-plus mr-2"></i>新建知识
                </button>
            </div>

            <!-- 搜索栏 -->
            <div class="mb-6">
                <div class="relative">
                    <input type="text" placeholder="搜索知识库..." class="w-full px-4 py-2 border rounded-lg pl-10">
                    <i class="fas fa-search absolute left-3 top-3 text-gray-400"></i>
                </div>
            </div>

            <!-- 知识分类标签 -->
            <div class="flex space-x-4 mb-6">
                <button class="px-4 py-2 bg-blue-100 text-blue-800 rounded-lg">全部</button>
                <button class="px-4 py-2 bg-gray-100 text-gray-800 rounded-lg">消防规范</button>
                <button class="px-4 py-2 bg-gray-100 text-gray-800 rounded-lg">事故案例</button>
                <button class="px-4 py-2 bg-gray-100 text-gray-800 rounded-lg">操作规程</button>
                <button class="px-4 py-2 bg-gray-100 text-gray-800 rounded-lg">应急预案</button>
            </div>

            <!-- 知识列表 -->
            <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
                <!-- 知识卡片 1 -->
                <div class="border rounded-lg p-4 hover:shadow-lg transition-shadow">
                    <div class="flex items-center mb-4">
                        <i class="fas fa-file-pdf text-4xl text-red-500 mr-3"></i>
                        <div>
                            <h3 class="font-semibold">消防安全管理规定</h3>
                            <p class="text-sm text-gray-500">更新时间：2024-03-15</p>
                        </div>
                    </div>
                    <p class="text-gray-600 mb-4">本标准规定了消防安全管理的基本要求、组织机构和职责、消防安全管理制度等。</p>
                    <div class="flex justify-between items-center">
                        <span class="text-sm text-blue-500">消防规范</span>
                        <div class="space-x-2">
                            <button class="text-gray-500 hover:text-blue-500"><i class="fas fa-edit"></i></button>
                            <button class="text-gray-500 hover:text-red-500"><i class="fas fa-trash"></i></button>
                        </div>
                    </div>
                </div>

                <!-- 知识卡片 2 -->
                <div class="border rounded-lg p-4 hover:shadow-lg transition-shadow">
                    <div class="flex items-center mb-4">
                        <i class="fas fa-file-word text-4xl text-blue-500 mr-3"></i>
                        <div>
                            <h3 class="font-semibold">火灾事故案例分析</h3>
                            <p class="text-sm text-gray-500">更新时间：2024-03-14</p>
                        </div>
                    </div>
                    <p class="text-gray-600 mb-4">收集整理典型火灾事故案例，分析事故原因，总结经验教训。</p>
                    <div class="flex justify-between items-center">
                        <span class="text-sm text-green-500">事故案例</span>
                        <div class="space-x-2">
                            <button class="text-gray-500 hover:text-blue-500"><i class="fas fa-edit"></i></button>
                            <button class="text-gray-500 hover:text-red-500"><i class="fas fa-trash"></i></button>
                        </div>
                    </div>
                </div>

                <!-- 知识卡片 3 -->
                <div class="border rounded-lg p-4 hover:shadow-lg transition-shadow">
                    <div class="flex items-center mb-4">
                        <i class="fas fa-file-excel text-4xl text-green-500 mr-3"></i>
                        <div>
                            <h3 class="font-semibold">消防设备操作规程</h3>
                            <p class="text-sm text-gray-500">更新时间：2024-03-13</p>
                        </div>
                    </div>
                    <p class="text-gray-600 mb-4">详细说明各类消防设备的使用方法、维护保养要求和注意事项。</p>
                    <div class="flex justify-between items-center">
                        <span class="text-sm text-purple-500">操作规程</span>
                        <div class="space-x-2">
                            <button class="text-gray-500 hover:text-blue-500"><i class="fas fa-edit"></i></button>
                            <button class="text-gray-500 hover:text-red-500"><i class="fas fa-trash"></i></button>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 分页 -->
            <div class="flex justify-center mt-8">
                <nav class="flex items-center space-x-2">
                    <button class="px-3 py-1 border rounded-lg hover:bg-gray-100"><i class="fas fa-chevron-left"></i></button>
                    <button class="px-3 py-1 bg-blue-500 text-white rounded-lg">1</button>
                    <button class="px-3 py-1 border rounded-lg hover:bg-gray-100">2</button>
                    <button class="px-3 py-1 border rounded-lg hover:bg-gray-100">3</button>
                    <button class="px-3 py-1 border rounded-lg hover:bg-gray-100"><i class="fas fa-chevron-right"></i></button>
                </nav>
            </div>
        </div>
    </div>
</body>
</html> 